<%@  language="javascript" %>
<!--#include file="Cabecera2.asp" -->

<%
  //var aa = ActividadGetEficaciaFisicaAcumulada(27, 12);
  //Response.Write(aa);
  var qGestion = Session("auth_granted_poa_gestion");
  var mesReporte = Session("auth_granted_poa_mes");
  var qAperturas = "select a.aper_id, a.aper_descripcion from AperturaProgramatica a where aper_gestion=" + qGestion + " and aper_actividad <> '000'  ";
  //Response.Write(qAperturas);
  var Aperturas = getDatar(qAperturas);
  // recuperando de formulario
  if (request.form("submit").count() == 1) {
    mesReporte = request.form("mes");
  }
  var mesReporteCadena2 = getNombreMes(mesReporte);
%>
<script type="text/javascript" src="Scripts/jasny-bootstrap.min.js"></script>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center">
  <tbody>
    <tr>
    <td class="TituloSeccion" style="text-transform:uppercase">REPORTE GERENCIAL<br>A <%= mesReporteCadena2 %>&nbsp; <%= qGestion %></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td> 
      <table style="width: 100%">
        <tr>
          <td>
        <form name="" id="" method="post" action="">
        <label>Seleccionar mes:</label>
        <select name="mes">
          <option value="1" <%= (Number(mesReporte) == 1) ? " selected='selected' " : "" %>>Enero</option>
          <option value="2" <%= (Number(mesReporte) == 2) ? " selected='selected' " : "" %>>Febrero</option>
          <option value="3" <%= (Number(mesReporte) == 3) ? " selected='selected' " : "" %>>Marzo</option>
          <option value="4" <%= (Number(mesReporte) == 4) ? " selected='selected' " : "" %>>Abril</option>
          <option value="5" <%= (Number(mesReporte) == 5) ? " selected='selected' " : "" %>>Mayo</option>
          <option value="6" <%= (Number(mesReporte) == 6) ? " selected='selected' " : "" %>>Junio</option>
          <option value="7" <%= (Number(mesReporte) == 7) ? " selected='selected' " : "" %>>Julio</option>
          <option value="8" <%= (Number(mesReporte) == 8) ? " selected='selected' " : "" %>>Agosto</option>
          <option value="9" <%= (Number(mesReporte) == 9) ? " selected='selected' " : "" %>>Septiembre</option>
          <option value="10" <%= (Number(mesReporte) == 10) ? " selected='selected' " : "" %>>Octubre</option>
          <option value="11" <%= (Number(mesReporte) == 11) ? " selected='selected' " : "" %>>Noviembre</option>
          <option value="12" <%= (Number(mesReporte) == 12) ? " selected='selected' " : "" %>>Diciembre</option>
        </select> &nbsp;<input type="submit" value="Mostrar" name="submit" />
        </form>
              <a href="EficaciaAcumuladaPorAperturaImprimir.asp?mes=<%= mesReporte %>" target="_blank"> <img src="Iconos/printer_add.png" border="0" alt="Imprimir" title="Imprimir">&nbsp;Imprimir</a>
            </td>
          <td align="right" >
            <!--#include file="_leyenda.asp" -->
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
  	<td>
      <!--#include file="EficaciaAcumuladaPorApertura_parcial.asp" -->
      </td>
    </tr>
    </tbody>
  </table>
<!--#include file="Pie2.asp" -->